package com.moji.controller.web;


import com.moji.common.base.ApiResult;
import com.moji.entity.MjOpinion;
import com.moji.service.MjOpinionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 意见反馈表 前端控制器
 * </p>
 *
 * @author ccl
 * @since 2024-07-28
 */
@RestController
@RequestMapping("/web/mjOpinion")
@Api(tags = "意见反馈(申请体验)web相关接口", value = "意见反馈(申请体验)web相关接口")
public class MjOpinionController {

    @Resource
    private MjOpinionService mjOpinionService;

    @PostMapping("/add")
    @ApiOperation(value = "意见反馈(申请体验)_新增",response = Boolean.class)
    public ApiResult add(@Validated @RequestBody MjOpinion mjOpinion){
        return ApiResult.ok(mjOpinionService.add(mjOpinion));
    }

}

